<?php
$result = [
    'code' => '0x000000',
    'message' => 'ok',
    'data' => [
        'list' => [
            [
                'contractId' => '201908021',
                'studentIntentionId' => '1371355654',
                'teacherLevel' => 1,
                'period' => 5,
                'donatePeriod' => 1,
                'total' => 6,
                'consumePeriod(消耗课时)' => 3,
                'surplusPeriod(剩余课时)' => 3,
                'minutePerPeriod(每课时分钟数)' => '45',
                'surplusMinutes(剩余分钟数)' => '135',
                'surplusClass(剩余节数)' => '3.5',
                'contractStatus' => 4
            ],
            [
                'contractId' => '201908022',
                'studentIntentionId' => '1371355654',
                'teacherLevel' => 1,
                'period' => 5,
                'donatePeriod' => 1,
                'total' => 6,
                'consumePeriod(消耗课时)' => 3,
                'surplusPeriod(剩余课时)' => 3,
                'minutePerPeriod(每课时分钟数)' => '45',
                'surplusMinutes(剩余分钟数)' => '135',
                'surplusClass(剩余节数)' => '3.5',
                'contractStatus' => 4
            ],
            [
                'contractId' => '201908022',
                'studentIntentionId' => '1371355654',
                'teacherLevel' => 1,
                'period' => 5,
                'donatePeriod' => 1,
                'total' => 6,
                'consumePeriod(消耗课时)' => 3,
                'surplusPeriod(剩余课时)' => 3,
                'minutePerPeriod(每课时分钟数)' => '45',
                'surplusMinutes(剩余分钟数)' => '135',
                'surplusClass(剩余节数)' => '3.5',
                'contractStatus' => 4
            ],
        ],
        'statistics' => [
            'commonPeriod' => 20,
            'fiveStarsPeriod' => 30,
            'commonClass' => 30,
            'fiveStarsClass' => 40,
        ]
    ]
];

//echo json_encode($result);

//var_dump(strtotime('05:20'));die();
$start = '05:21';
for ($i = 0; $i < 30; $i++) {
    $date[] = date("H:i", strtotime($start) + $i * 50 * 60);
}
//print_r($date);


$arr = [
    '05:20',
    '06:10',
    '07:00',
    '07:50',
    '08:40',
    '09:30',
    '10:20',
    '11:10',
    '12:00',
    '12:50',
    '13:40',
    '14:30',
    '15:20',
    '16:10',
    '17:00',
    '17:50',
    '18:40',
    '19:30',
    '20:20',
    '21:10',
    '22:00',
    '22:50',
    '23:40',
    '00:30',
    '01:20',
    '02:10',
    '03:00',
    '11:10',
    '03:50',
    '04:40'
];
array_push($arr,$start) ;
sort($arr);

print_r($arr);die();


$b = array_search('11:10',$arr);
var_dump($b);
var_dump($arr[$b-1],$arr[$b+1]);